﻿<%@ Page Title="CounterMaster" Language="C#" MasterPageFile="~/GEMS.master" AutoEventWireup="true"
    CodeFile="CounterMaster.aspx.cs" Inherits="countermaster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel runat="server" ID="UpdatePanel">
        <ContentTemplate>
            <div class="container960">
                <div class="container_12 container_16">
                    <div class="full">
                        <div class="content">
                            <h2>
                                Counter Master</h2>
                            <div class="f_head r2 box">
                                <div class="head_con">
                                    <div class="c1">
                                        <div class="rw1">
                                            <asp:Label ID="lblCode" runat="server" CssClass="text" Text="Counter Code"></asp:Label>
                                            <asp:TextBox ID="txtCountercode" runat="server" CssClass="text_field field"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="c2">
                                        <div class="rw1">
                                            <asp:Label ID="lblcountname" runat="server" CssClass="text" Text="Counter Name"></asp:Label>
                                            <asp:TextBox ID="txtCounterName" runat="server" CssClass="text_field field"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="rw1 row_btn">
                                        <asp:Button ID="btn_Add" runat="server" Text="Add" CssClass="lgin" OnClick="btn_Add_Click" />
                                    </div>
                                </div>
                            </div>
                            <div class="box" id="count_grid">
                                <div class="grid1">
                                    <asp:GridView ID="GridView1" runat="server" BackColor="White" CssClass="mGrid" GridLines="Vertical"
                                        AutoGenerateColumns="false" DataKeyNames="Counter_ID" OnSorting="gvList_Sorting" AllowSorting="true" OnRowDataBound="grdiview_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderText="Edit">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="Ibtedt" runat="server" CausesValidation="False" ImageUrl="~/css/images/edit.jpg"
                                                        Text="Edit" ToolTip="Click here to Edit" OnClick="Ibtedt_Click"/>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Delete">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="ibtdlt" runat="server" CausesValidation="False" ImageUrl="~/css/images/delete.gif"
                                                    OnClick="ibtdlt_Click" Text="Delete" ToolTip="Click here to Delete"  OnClientClick="return confirm('Are you sure to delete ?');" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="CounterCode" DataField="CounterCode" SortExpression="CounterCode" />
                                            <asp:BoundField HeaderText="CounterName" DataField="CounterName" SortExpression="CounterName" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                 <uc1:Pager ID="PagerControl" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
